/*
 * @Description: 单位导航包裹组件
 * @Author: Rfan
 * @Date: 2022-02-10 13:40:29
 * @LastEditTime: 2022-03-15 15:30:16
 */

import FondsNav from '@/components/FondsNav';
import { useArcTypeContext } from '../contexts/ArcTypeContext';

const FondsSidebar = () => {
  const { setSelectFond, setATList } = useArcTypeContext();

  const handleChange = (id: number, item: any) => {
    setSelectFond(item);
    if (!id) {
      setATList([]);
    }
  };

  return (
    <>
      <FondsNav onChange={handleChange} />
    </>
  );
};

export default FondsSidebar;
